Diego Escalante Urrelo [Fri, 6 Apr 2012 01:43:09 +0000 (20:43 -0500)]
gnomeos-clone-qemu: use bash explicitely
Diego Escalante Urrelo [Thu, 5 Apr 2012 05:56:29 +0000 (00:56 -0500)]
ostree-pull: GOptionEntry must be NULL terminated
Diego Escalante Urrelo [Thu, 5 Apr 2012 05:30:20 +0000 (00:30 -0500)]
gnomeos-install: don't cd into /ostree prematurely
The script will die and not proceed with the creation of the directory.
Diego Escalante Urrelo [Thu, 5 Apr 2012 05:29:55 +0000 (00:29 -0500)]
gnomeos-install: use /bin/bash, not /bin/sh
This scripts use bashisms, so use /bin/bash as the interpreter until
they are un-bashified.
Diego Escalante Urrelo [Thu, 5 Apr 2012 05:29:25 +0000 (00:29 -0500)]
gnomeos: update README script path
Colin Walters [Wed, 4 Apr 2012 03:45:48 +0000 (23:45 -0400)]
core: Associate branches with remotes, move trigger runs into checkout
Also add --atomic-retarget option to checkout. This does the magical
symlink dance to do atomic swaps between trees.
Colin Walters [Wed, 4 Apr 2012 03:45:28 +0000 (23:45 -0400)]
core: Clean up stale packfiles
Colin Walters [Tue, 3 Apr 2012 12:52:58 +0000 (08:52 -0400)]
core: Validate structure of objects in fsck
Colin Walters [Tue, 3 Apr 2012 12:52:44 +0000 (08:52 -0400)]
core: Make pull slightly more verbose
Colin Walters [Mon, 2 Apr 2012 23:52:22 +0000 (19:52 -0400)]
core: Drop "staged" state for objects, refactor pull to split metadata/data
Previously we had the "staged" state to ensure we didn't add a commit
object without the associated dirtree, etc. However it's
easier/better to just ensure in the pull command that we have all
referenced objects.
Also change pull to download metadata first. This will allow adding
a progress bar later.
Colin Walters [Mon, 2 Apr 2012 22:18:11 +0000 (18:18 -0400)]
core: Make fsck verify from commit objects
Rather than verifying every object, traverse all commit objects we
find. This is a better check, since primarily we care about being
able to check out trees. In the new packfile regime, this ensures
validity of packed data.
It also means we aren't checking loose objects that we most likely
don't care about.
Colin Walters [Mon, 2 Apr 2012 19:51:23 +0000 (15:51 -0400)]
core: Move commit/dirtree traversal into library
So it can more easily be reused by other builtins.
Colin Walters [Mon, 2 Apr 2012 21:41:04 +0000 (17:41 -0400)]
core: Fix a few memory leaks
Colin Walters [Mon, 2 Apr 2012 21:40:17 +0000 (17:40 -0400)]
core: Return input stream for raw repositories too
This bug is more obvious when fsck is rebased on top of
ostree_repo_load_file().
Colin Walters [Mon, 2 Apr 2012 17:49:23 +0000 (13:49 -0400)]
Release 2012.1
Colin Walters [Mon, 2 Apr 2012 17:42:09 +0000 (13:42 -0400)]
core: Only depend on GLib 2.30
Colin Walters [Sat, 31 Mar 2012 16:34:11 +0000 (12:34 -0400)]
Release 2012.0
This marks a new versioning scheme.
Colin Walters [Sat, 31 Mar 2012 14:37:51 +0000 (10:37 -0400)]
core: Add pack files
This concept is also directly inspired by git. At present, our
implementation is quite similar, except we don't have delta
compression.
Colin Walters [Sat, 31 Mar 2012 14:32:26 +0000 (10:32 -0400)]
core: Add stream->variant helper, as well as clear macros for ptrarray/hashtable
Colin Walters [Sat, 31 Mar 2012 14:32:02 +0000 (10:32 -0400)]
core: Add a few more GIO utility functions
Colin Walters [Wed, 14 Mar 2012 13:37:00 +0000 (09:37 -0400)]
core: Add helper functions to convert (checksum, objtype) pair to/from string
Colin Walters [Tue, 13 Mar 2012 21:06:06 +0000 (17:06 -0400)]
ostbuild: Add preserve_net config option
This is going to be necessary for the builder.
Colin Walters [Tue, 13 Mar 2012 17:09:05 +0000 (13:09 -0400)]
manifest: Move ostree back to master branch from git
Colin Walters [Tue, 13 Mar 2012 15:57:14 +0000 (11:57 -0400)]
gnomeos: Move gnomeos/yocto into poky tree
Now lives here: https://github.com/cgwalters/poky
Colin Walters [Tue, 13 Mar 2012 14:13:22 +0000 (10:13 -0400)]
ostbuild: Re-unify into one snapshot.json file
This is actually easier. Now add 'ostbuild query-content' which can
extract the JSON data we stuff into builds.
Colin Walters [Mon, 12 Mar 2012 00:17:15 +0000 (20:17 -0400)]
ostbuild: Rename manifest for clarity
Colin Walters [Sun, 11 Mar 2012 00:27:27 +0000 (19:27 -0500)]
ostbuild: Rework again, split into components.json and targets.json
The "resolve" builtin now does a lot more heavy lifting; we expand the
manifest.json, and "build" consequently is less intelligent now, more
of a low-level implementation.
Colin Walters [Thu, 8 Mar 2012 21:24:19 +0000 (16:24 -0500)]
manifest: Drop duplicated components (oops!)
Colin Walters [Thu, 8 Mar 2012 14:02:46 +0000 (09:02 -0500)]
ostbuild: Only check out source if we need to
When using --skip-built, we shouldn't do a checkout if we're not going
to build.
Colin Walters [Thu, 8 Mar 2012 13:41:58 +0000 (08:41 -0500)]
ostbuild: Ensure we enable soup-gnome for ostree
Colin Walters [Thu, 8 Mar 2012 13:41:32 +0000 (08:41 -0500)]
ostbuild: Stop generating git mirror config
Nothing's using it right now and it's a little buggy.
Colin Walters [Thu, 8 Mar 2012 00:58:07 +0000 (19:58 -0500)]
ostbuild: Further work on regenerating a snapshot from a compose
Colin Walters [Wed, 7 Mar 2012 17:06:44 +0000 (12:06 -0500)]
ostbuild: Change to name-prefix and base-prefix in manifest
This makes it clearer that we're using this as a prefix, when we
generate the snapshots.
Colin Walters [Wed, 7 Mar 2012 12:15:34 +0000 (07:15 -0500)]
ostbuild: Switch to composing via checkouts+commit
Store the compose contents as a JSON file in the filesystem tree.
This is more flexible compared to defining "compose" as just a literal
layering of filesystem trees. For example, we might want to run
prelink.
Colin Walters [Wed, 7 Mar 2012 00:36:58 +0000 (19:36 -0500)]
ostbuild: Stop using "compose" to make buildroots
It pollutes the repository with a combinatorial explosion of .dirtree
metadata files, and we don't really need to track buildroots at that
level.
Colin Walters [Mon, 5 Mar 2012 15:44:01 +0000 (10:44 -0500)]
ostbuild: Drop "commit-artifacts" builtin
It's long since dead.
Colin Walters [Mon, 5 Mar 2012 15:39:49 +0000 (10:39 -0500)]
ostbuild: Kill "autodiscover-meta"
No longer needed.
Colin Walters [Mon, 5 Mar 2012 15:33:49 +0000 (10:33 -0500)]
ostbuild: Adapt "status" to expanded manifest
Colin Walters [Sun, 4 Mar 2012 17:59:17 +0000 (12:59 -0500)]
ostbuild: Adapt "build" to newly updated expanded manifest
Colin Walters [Fri, 2 Mar 2012 12:51:56 +0000 (07:51 -0500)]
ostbuild: Write out separate arch-component snapshots
Colin Walters [Fri, 2 Mar 2012 11:51:53 +0000 (06:51 -0500)]
ostbuild: 'checkout' command now also applies patches
Colin Walters [Tue, 28 Feb 2012 11:40:35 +0000 (06:40 -0500)]
ostbuild: Pull patches from specified patches git repository
We need to be more formal about where we get patches from, and more
specifically what version. Let's assume they're also stored in a git
repository that we fetch, instead of copying them from "wherever the
manifest is".
This meshes nicely with splitting between manifest.json and
snapshot.json.
Colin Walters [Tue, 28 Feb 2012 00:29:33 +0000 (19:29 -0500)]
ostbuild: Change metadata keys for artifacts
"ostbuild-name" is important to tie back in to the snapshot.
"ostbuild-revision" is shorter than ostbuild-artifact-version.
Colin Walters [Tue, 28 Feb 2012 00:28:52 +0000 (19:28 -0500)]
ostbuild: Copy snapshot JSON into artifact trees
This is kind of a hack...but...
Colin Walters [Tue, 28 Feb 2012 00:28:13 +0000 (19:28 -0500)]
ostbuild: Sort keys in JSON snapshot
Colin Walters [Mon, 27 Feb 2012 23:57:56 +0000 (18:57 -0500)]
ostbuild: Rename build manifest to "snapshot.json"
It was confusing having two manifests. "snapshot" matches the
jhbuild term for the same thing.
Colin Walters [Sat, 25 Feb 2012 02:36:24 +0000 (21:36 -0500)]
ostbuild: Move more intelligence into chroot-compile-one
Let's have chroot-compile-one be the core logic for composing a
buildroot, etc. This allows us to use it as a developer tool by
checking out a tree, then doing a chroot build.
Colin Walters [Wed, 7 Mar 2012 15:25:26 +0000 (10:25 -0500)]
core: Fix "cat" crashing when it should have returned ENOENT
Colin Walters [Thu, 8 Mar 2012 13:41:01 +0000 (08:41 -0500)]
core: Fix crasher in "rev-parse"
Colin Walters [Tue, 6 Mar 2012 16:37:50 +0000 (11:37 -0500)]
core: Add --union mode to checkout
This is another step towards ostbuild using this instead of the
"compose" builtin.
Colin Walters [Tue, 6 Mar 2012 16:33:42 +0000 (11:33 -0500)]
core: Don't call unlink() on directory if it already exists
If we fail to make a directory because it exists, we shouldn't call
unlink() on it.
Colin Walters [Tue, 6 Mar 2012 14:10:48 +0000 (09:10 -0500)]
core: Pull diff functionality out into "diff" builtin
There's no good reason for this to be in core when it's only in use by
the diff builtin.
Colin Walters [Tue, 6 Mar 2012 13:57:31 +0000 (08:57 -0500)]
core: Add "subpath" option to checkout
Will be used by ostbuild to extract e.g. /runtime or /devel from
artifacts.
Colin Walters [Tue, 6 Mar 2012 13:48:48 +0000 (08:48 -0500)]
core: Improve checkout API
Expose the lower-level functionality in libostree, change checkout
builtin to be a higher level driver. This will allow us to more
easily improve the "checkout" builtin..
Colin Walters [Tue, 6 Mar 2012 13:45:43 +0000 (08:45 -0500)]
core: Add ostree-types.h
This allows us to have circular references between the headers.
Colin Walters [Tue, 6 Mar 2012 13:44:27 +0000 (08:44 -0500)]
libotuil: Fix missing #define in header
Colin Walters [Tue, 6 Mar 2012 13:10:33 +0000 (08:10 -0500)]
mainloop: Don't create poll until we need to
This slightly optimizes the case where we speculatively create a
Mainloop we might not use.
Colin Walters [Tue, 6 Mar 2012 12:56:30 +0000 (07:56 -0500)]
core: Allow 'rev-parse' to resolve multiple revs
Colin Walters [Mon, 5 Mar 2012 16:32:48 +0000 (11:32 -0500)]
core: Add 'cat' builtin
Colin Walters [Sat, 25 Feb 2012 02:35:31 +0000 (21:35 -0500)]
compose: Don't print trailing (null) if we skip committing
If we skip a commit due to an idential content parent, we shouldn't
print the (null) commit checksum.
Matthias Clasen [Wed, 29 Feb 2012 13:52:10 +0000 (08:52 -0500)]
Add some more draft documentation
This is just the bones for now, waiting for Colin to
provide the meat.
Colin Walters [Tue, 28 Feb 2012 18:27:31 +0000 (13:27 -0500)]
gnomeos-update-branches: Don't copy kernel modules
No longer necessary now that we're storing them in /ostree/modules.
Colin Walters [Tue, 28 Feb 2012 18:19:31 +0000 (13:19 -0500)]
README-install: Improve to use new multi-pull, etc.
Colin Walters [Tue, 28 Feb 2012 18:17:03 +0000 (13:17 -0500)]
pull: Allow pulling multiple specific refs
Colin Walters [Tue, 28 Feb 2012 17:57:25 +0000 (12:57 -0500)]
manifest: Drop gnome-control-center patches
shaunm removed the help entirely.
Matthias Clasen [Tue, 28 Feb 2012 17:20:40 +0000 (12:20 -0500)]
Add some update instructions to the README
Everything is complicated for somebody who looks at this
for the first time, so lets explain the basics.
Colin Walters [Mon, 27 Feb 2012 14:53:44 +0000 (09:53 -0500)]
prune: Fix two crasher bugs
Colin Walters [Mon, 27 Feb 2012 13:37:51 +0000 (08:37 -0500)]
pull: Add ability to fetch refs/summary if no ref specified
This allows us to fetch all refs, which is useful for ostbuild where
we do want the buildroot/ refs.
Colin Walters [Mon, 27 Feb 2012 13:37:37 +0000 (08:37 -0500)]
core: Add API to validate rev
Colin Walters [Mon, 27 Feb 2012 11:20:42 +0000 (06:20 -0500)]
core: Write a refs/summary file for archive repositories
This will allow us to retrieve all refs over HTTP easily.
Colin Walters [Mon, 27 Feb 2012 10:58:42 +0000 (05:58 -0500)]
core: Add API to enumerate all refs
Colin Walters [Sun, 26 Feb 2012 13:35:26 +0000 (08:35 -0500)]
pull: Print download URLs by default, rather than requiring -v
Let's leave verbose for more debug-type stuff.
Colin Walters [Sun, 26 Feb 2012 13:13:00 +0000 (08:13 -0500)]
3.4: Drop upstreamed gnome-panel patches
Colin Walters [Sun, 26 Feb 2012 11:36:29 +0000 (06:36 -0500)]
3.4: Drop upstreamed NetworkManager patches
Colin Walters [Sun, 26 Feb 2012 11:02:29 +0000 (06:02 -0500)]
manifest: xorg-video-intel needs the xorg-autogen.patch too
Not sure how this worked before...
Colin Walters [Fri, 24 Feb 2012 22:50:44 +0000 (17:50 -0500)]
core: Further fix fallout from archive mode files
Continuing from
16c0cfe9b59e2c619d4c57be9c995849af9f659f, we now have
the problem that we're removing the executable bit, which obviously
breaks things when we chroot in for a build. Fix this by masking over
our bits.
Colin Walters [Fri, 24 Feb 2012 22:26:17 +0000 (17:26 -0500)]
core: Disable Soup-gnome features for pull
Otherwise we get a dconf thread that tries to talk to the session bus.
I think this comes from the proxy settings lookup.
Colin Walters [Fri, 24 Feb 2012 22:24:50 +0000 (17:24 -0500)]
core: Disable Gvfs for binaries
Otherwise
1) Lots of unnecessary shit happens and I like my straces to be clean
2) There is no dbus session bus for system daemons or when we're run
in a root context
Colin Walters [Fri, 24 Feb 2012 21:08:34 +0000 (16:08 -0500)]
core: Look up refs like origin/foo correctly again
We want to support both "bare" lookups where "foo" can be local, or in
any remote, as well as prefixed ones for a specific remote.
This fixes ostree-pull noticing that nothing has changed.
Colin Walters [Fri, 24 Feb 2012 20:40:52 +0000 (15:40 -0500)]
build: Note the status of libsoup-gnome and libarchive
So fewer people accidentally compile without one.
Colin Walters [Fri, 24 Feb 2012 20:18:51 +0000 (15:18 -0500)]
yocto: Various misc cleanups to install scripts
Add a new gnomeos-update-branches.sh script which just does the work
of checking out roots. This is useful if you e.g. make a local
modification.
Rename scripts to gnomeos-*.sh consistently.
Tweak gnomeos-clone-qemu.sh script to support command line arguments
(again).
Colin Walters [Fri, 24 Feb 2012 16:56:31 +0000 (11:56 -0500)]
README-install: Add a blurb about running
Colin Walters [Fri, 24 Feb 2012 16:32:06 +0000 (11:32 -0500)]
install: Do two separate pull commands
Right now ostree-pull only accepts one ref.
Colin Walters [Fri, 24 Feb 2012 16:23:44 +0000 (11:23 -0500)]
gnomeos: Some fixes for install script
Colin Walters [Fri, 24 Feb 2012 16:07:45 +0000 (11:07 -0500)]
gnomeos: Clean up README files, add new README-install.md
Colin Walters [Fri, 24 Feb 2012 16:07:30 +0000 (11:07 -0500)]
install.sh: We're not installing kernels right now
Colin Walters [Fri, 24 Feb 2012 15:23:35 +0000 (10:23 -0500)]
core: Add "prune" builtin
This should be useful on clients to trim old refs. For example,
after an upgrade the system could do:
ostree --repo=/ostree/repo prune --depth=2 gnomeos-3.4-i686-runtime
This would remote all objects that aren't in the current build and the
previous one.
Colin Walters [Fri, 24 Feb 2012 15:23:10 +0000 (10:23 -0500)]
3.4: Update gdm patch, enable consolekit
Colin Walters [Fri, 24 Feb 2012 14:58:45 +0000 (09:58 -0500)]
core: Fix regression when committing symlinks in archive mode
Commit
802959f398bfc0c7acac9252e7a8f1a021884ce8 broke this because it
made all archived content files be S_IFREG, which is clearly wrong.
Colin Walters [Fri, 24 Feb 2012 04:53:30 +0000 (23:53 -0500)]
install.sh: Default to pulling from ostree.gnome.org/repo
Colin Walters [Fri, 24 Feb 2012 04:52:59 +0000 (23:52 -0500)]
core: Correctly look up refs in remotes
Colin Walters [Fri, 24 Feb 2012 02:52:15 +0000 (21:52 -0500)]
pull: Don't automatically uncompress data
This totally breaks when the file we're trying to request was already
gzip'd. We don't want to uncompress e.g. man pages because that
breaks content-addressed storage.
Colin Walters [Fri, 24 Feb 2012 00:20:36 +0000 (19:20 -0500)]
pull: Incrementally write into temporary file
Rather than downloading into one big chunk in memory, then writing all
at once.
Colin Walters [Thu, 23 Feb 2012 23:19:00 +0000 (18:19 -0500)]
core: Store "pending" objects explicitly, fix pull to use them
Before we were creating randomly-named temporary files in repo/tmp
when downloading via pull, but that means if the download process is
interrupted, we have to redownload everything again.
Let's still keep the concept of a "transaction" where files are
stored in the repository as atomically as possible (i.e. we
do a bunch of rename() calls), but now we also have an explicit
"tmp/pending/objects" directory that contains named objects.
This allows us to then skip redownloading things that are pending.
Colin Walters [Thu, 23 Feb 2012 17:34:43 +0000 (12:34 -0500)]
core: Ensure .archive-content files are mode 0644
We don't want to inherit the permissions of the actual file, otherwise
trying to fetch e.g. /etc/passwd when being served via Apache httpd
will break.
Colin Walters [Thu, 23 Feb 2012 17:30:01 +0000 (12:30 -0500)]
pull: Only fetch .archive-content for regular files
Otherwise e.g. Apache httpd might try to follow a symbolic link to
/bin/tinylogin which clearly won't work.
Colin Walters [Thu, 23 Feb 2012 15:58:34 +0000 (10:58 -0500)]
3.4: Switch to gnome-terminal gnome-3-4 branch
Colin Walters [Thu, 23 Feb 2012 15:50:56 +0000 (10:50 -0500)]
3.4: Fix panel build
Colin Walters [Thu, 23 Feb 2012 13:21:17 +0000 (08:21 -0500)]
3.4: Bump telepathy-glib
Colin Walters [Thu, 23 Feb 2012 03:53:24 +0000 (22:53 -0500)]
3.4: Fix accountsservice srcdir != builddir